package com.handersome.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 测试从application.properties中获取配置属性
 * @author handersome
 *
 * @version 创建时间：2017年11月30日 下午5:20:07
 */
@Component
public class PropertiesService {

	@Value("${handersome.name}")
	private String name;
	
	@Value("${handersome.id}")
	private Integer id;
	
	@Value("${handersome.age}")
	private Integer age;
	
	@Value("${handersome.randomInt}")
	private Integer randomInt;
	
	@Value("${handersome.randomRangeInt}")
	private Integer randomRangeInt;
	
	@Value("${handersome.randomLenInt}")
	private Integer randomLengthInt;
	
	@Value("${handersome.randomString}")
	private String randomString;

	public String getName() {
		return name;
	}

	public Integer getId() {
		return id;
	}

	public Integer getAge() {
		return age;
	}

	public Integer getRandomInt() {
		return randomInt;
	}

	public void setRandomInt(Integer randomInt) {
		this.randomInt = randomInt;
	}

	public Integer getRandomRangeInt() {
		return randomRangeInt;
	}

	public void setRandomRangeInt(Integer randomRangeInt) {
		this.randomRangeInt = randomRangeInt;
	}

	public Integer getRandomLengthInt() {
		return randomLengthInt;
	}

	public void setRandomLengthInt(Integer randomLengthInt) {
		this.randomLengthInt = randomLengthInt;
	}

	public String getRandomString() {
		return randomString;
	}

	public void setRandomString(String randomString) {
		this.randomString = randomString;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public void setAge(Integer age) {
		this.age = age;
	}
	
	
}
